package neu.soft.feignclient;

import neu.soft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "financial-server", fallbackFactory = WarehouseFeignClientFallBackFactory.class)
public interface FinancialServerFeignClient {

    @PostMapping("/invoice/supply")
    public ResultBean<Map<String,Object>> supply(@RequestBody Map<String, Object> map);
}
